using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CB_TriggerArea : MonoBehaviour
{
    public float rotateAngle = 0;
    public Vector3 scale = new Vector3(1,1,1);
    public CameraBlocks CB;

    private void Start( )
    {
        CB = GetComponentInParent<CameraBlocks>( );
    }
    private void OnTriggerEnter2D( Collider2D other )
    {
        if ( other.CompareTag( "Player" ) )
        {
            CB.rotateAngle = rotateAngle;
            CB.scale = scale;
        }
    }
}
